package android.slc.icr.core.room.manager;

import android.slc.icr.core.entity.IcrChartRoom;
import android.slc.icr.core.entity.IcrMessage;
import android.slc.icr.core.room.studio.StandardChartRoomStudio;

/**
 * 标准的聊天室管理器
 *
 * @author slc
 * @date 2022/05/10 下午 1:00
 */
public class StandardChartRoomManager extends AbsChartRoomManager<StandardChartRoomStudio> {
    public static class Holder {
        private static final StandardChartRoomManager CHART_ROOM_MANAGER = new StandardChartRoomManager();
    }

    public static StandardChartRoomManager getInstance() {
        return Holder.CHART_ROOM_MANAGER;
    }

    @Override
    public String getRoomMsgType() {
        return IcrMessage.MSG_TYPE_CHART_ROOM;
    }


    @Override
    protected StandardChartRoomStudio createChartRoomStudio(IcrChartRoom icrChartRoom) {
        return new StandardChartRoomStudio(icrChartRoom, getIcrMessageRemoteService(), getIcrPersistenceService().getIcrChartRoomMemberService(), this);
    }
}
